<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>编辑产品</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <!--    <meta name="viewport"-->
    <!--          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>-->
    <link rel="stylesheet" href="../../css/font.css">
    <link rel="stylesheet" href="../../css/xadmin.css">
    <script type="text/javascript" src="../../js/jquery.min.js" charset="utf-8"></script>
    <script src="../../js/admin/isLogin.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../js/xadmin.js"></script>
    <script src="../../js/product/product-edit.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row">
        <form class="layui-form" onsubmit="return false;">
            <!--  ID 隐藏 -->
            <div class="layui-form-item" style="display: none">
                <label for="L_id" class="layui-form-label">
                    <span class="x-red">*</span>ID</label>
                <div class="layui-input-inline">
                    <input type="text" id="L_id" name="id"  disabled=""
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="test1" class="layui-form-label">
                    <span class="x-red">*</span>产品图片</label>
                <div class="layui-input-block">
                    <div class="layui-upload">
                        <button type="button" class="layui-btn" id="test1">上传图片</button>
                        <div class="layui-upload-list">
                            <img class="layui-upload-img" id="demo1" style="width: 150px;" height="120px;">
                            <p id="demoText" style="padding-top: 10px;" ></p>
                        </div>
                        <div style="width: 95px;">
                            <div class="layui-progress layui-progress-big" lay-showpercent="yes" lay-filter="demo">
                                <div class="layui-progress-bar" lay-percent=""></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--   图片链接隐藏域      -->
            <div class="layui-form-item" style="display: none;">
                <label for="L_name" class="layui-form-label">
                    <span class="x-red">*</span>图片链接</label>
                <div class="layui-input-block">
                    <input type="text" id="L_img" name="img"  required="" lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_name" class="layui-form-label">
                    <span class="x-red">*</span>产品名称</label>
                <div class="layui-input-block">
                    <input type="text" id="L_name" name="name"  required="" lay-verify="required"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">产品详情</label>
                <div class="layui-input-block">
                    <textarea id="content" name="detail" required="" lay-verify="content" style="display: none;" ></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="marketPrice" class="layui-form-label">市场价</label>
                <div class="layui-input-block">
                    <input type="number" class="layui-input" name="marketPrice" autocomplete="off" value="1" step="2" min="1" max="20000" id="marketPrice" lay-verify="number">
                </div>
            </div>
            <div class="layui-form-item">
                <label for="platformPrice" class="layui-form-label">平台价</label>
                <div class="layui-input-block">
                    <input type="number" class="layui-input" name="platformPrice" autocomplete="off" value="1" step="2" min="1" max="20000" id="platformPrice" lay-verify="number">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">产品类型</label>
                <div class="layui-input-block">
                    <select name="tMenuId" id="tMenuId" required="" lay-verify="required" >
                        <option value="">请选择</option>
                        <!--<optgroup label="一级类型" id="productType">
&lt;!&ndash;                            <option value="你工作的第一个城市">你工作的第一个城市？</option>&ndash;&gt;
                        </optgroup>-->
                        <optgroup label="子类型" id="productType2">
                            <!--                            &lt;!&ndash;<option value="你的工号">你的工号？</option>-->
                            <!--                            <option value="你最喜欢的老师">你最喜欢的老师？</option>&ndash;&gt;-->
                        </optgroup>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label  class="layui-form-label"></label>
                <button class="layui-btn" lay-filter="add" id="sumbit" lay-submit="">修改产品</button>
                &emsp;
                <button class="layui-btn layui-btn-danger" type="button" onclick="resetProductForm()" >重置信息</button>
            </div>
        </form>
    </div>
</div>

</body>

</html>